//路由
import React from 'react';
import {BrowserRouter as Router,} from "react-router-dom"
//
//引入页面
import RouterViews from "./routerview"
import routes from "./config"
//头部
import Header from "../components/header/Header"

//创建路由表
const App=()=>(
    <Router>
        {
            // this.props.params.path!=="/list"?<Header/>:null
        }
          <Header/>
          <RouterViews routes={routes}/>
    </Router>
)
export default App;